package com.cnyz.entity;

import com.cnyz.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@ApiModel(description = "考试对象")
@Data
public class Exam extends BaseEntity {
    @ApiModelProperty(value = "考试名称")
    private String name;

    @ApiModelProperty(value = "考试课程")
    private Long course;

    @ApiModelProperty(value = "考试描述")
    private String description;

    @ApiModelProperty(value = "试卷id")
    private Long paperId;

    @ApiModelProperty(value = "考试日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "考试时间")
    private String totalTime;

    @ApiModelProperty(value = "考试类型")
    private Integer type;

    @ApiModelProperty(value = "总分")
    private Integer totalScore;



}
